package b2.config
{
	public class BulletConfig
	{
		//索引
		public var index:int;
		//子弹名称
		public var name:String;
		//子弹图片
		public var bulletImage:String;
		//子弹颜色滤镜
		public var bulletFilter:Array;
		//爆炸动画
		public var explodeImage:String;
		//爆炸宽度
		public var explodeWidth:int;
		//爆炸颜色滤镜
		public var explodeFilter:Array;
		
		public function BulletConfig(bulletXML:XML)
		{
			index = bulletXML.index;
			name = bulletXML.name;
			bulletImage = bulletXML.bulletImage;
			if (bulletXML.bulletFilter != undefined)
				bulletFilter = bulletXML.bulletFilter.split(",");
			explodeImage = bulletXML.explodeImage;
			explodeWidth = bulletXML.explodeWidth;
			if (bulletXML.explodeFilter != undefined)
				explodeFilter = bulletXML.explodeFilter.split(",");
		}

	}
}